<!--河南星辰软件科技有限公司
@copyright Copyright (c) 2010~2022 All rights reserved.
-->
<template>
  <div class='app-container'>
    <el-menu default-active='active' mode='horizontal' class='menu-unit'>
      <el-menu-item v-for='item in Container1' :index="'流程列表'===item.name?'active':'default'">
        <el-link @click="gotoMenu(item.url)" :type="'流程列表'===item.name?'primary':'default'">{{item.page_desc||item.name}}</el-link>
      </el-menu-item>
    </el-menu>
    <table cellpadding="4" cellspacing="0" border="0" width="100%">
      <tr>
        <td class="containerBack">
          <el-form ref="form" :model="s_step" :rules="rules" label-width="100px" id="mvcfm">
            <div class="form-unit">
              <span class="mvc-title-left"> 工序步骤 </span>
            </div>
            <el-table :data="s_step">
              <el-table-column label="工序" prop="description">
              </el-table-column>
              <el-table-column label="工序岗位" prop="firm_rloe">
              </el-table-column>
              <el-table-column label="变更状态" prop="process_state">
              </el-table-column>
              <el-table-column label="工序描述" prop="process_des">
              </el-table-column>
              <el-table-column label="下一步骤" prop="nextstepid_name">
              </el-table-column>
            </el-table>
          </el-form>
        </td>
      </tr>
    </table>
  </div>
</template>
<script>
  import request from '@/utils/request'
  export default {
    name: 'Checklist',
    components: {},
    props: ['popparams'],
    data() {
      return {
        vueparams: this.getVUEParams(""),
        s_step: [],
        loading: false,
        Container1: null,
        rules: {}
      }
    },
    created() {
      this.getData();
      this.loadContainerMenu({
        pid: "C1BDE411EFF7473EAF5F658AF81F2689",
        name: "工序流程图",
        selected: "流程列表"
      }, 'Container1', this.vueparams);
    },
    updated() {},
    mounted() {},
    methods: {
      getData() {
        request({
          method: 'get',
          url: '/xcapi/VUEAction/mes/product/ProductAction/checklist?' + this.vueparams,
        }).then(data => {
          for (var k in data) {
            if (Array.isArray(data[k])) {
              this[k] = data[k];
            } else {
              $.extend(this[k], data[k]);
            }
          }
        })
      },
    },
  }
</script>
